//
//  PreferenceController.m
//  <6.1>RaiseMan
//
//  Created by chen on 16/9/12.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import "PreferenceController.h"

@interface PreferenceController ()


@property (weak) IBOutlet NSColorWell *colorWell;

@property (weak) IBOutlet NSButton *checkBox;

@end

@implementation PreferenceController

- (void)windowDidLoad {
    [super windowDidLoad];
    

}

-(instancetype)init{
    
    //这样在需要时就会自动加载 
    self = [super initWithWindowNibName:@"Preference"];
    
    
    return  self ;
}



- (IBAction)changeBackgroudColor:(id)sender{
 
    NSColor *color = [_colorWell color];
    
    NSLog(@"color = %@",color);
    
}


- (IBAction)changeNewEmptyDoc:(id)sender{
    
    NSInteger state = [sender state];
    
    NSLog(@"state = %ld", state);
    
}


@end
